<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui" template="template.xhtml">
	<ui:define name="main">
		<h:form id="formConsultaAgenda" prependid="false">
			<div class="header header_notas_agenda" />
			<p:panel id="painelConsulta"
				header="#{msgs.notas_agenda_cadastrados}">
				<p:dataTable
					value="#{notaAgendaBean.consultarNotasAgenda(dashboardResponsavelBean.alunoSelecionado)}"
					id="tabela" emptyMessage="#{msgs.nenhum_registro_encontrado}"
					rowIndexVar="var" paginator="true" paginatorPosition="bottom"
					firstPageLinkLabel="Primeira" previousPageLinkLabel="Anterior"
					nextPageLinkLabel="Proxima" lastPageLinkLabel="ultima" rows="5"
					var="notaAgenda" width="600">

					<p:column style="width:100px;text-align:center"
						filterBy="#{notaAgenda.dataLancamento}" filterMatchMode="contains"
						footerText="#{msgs.contem}">
						<f:facet name="header">
							<h:outputText value="#{msgs.data}" />
						</f:facet>
						<h:outputText value="#{notaAgenda.dataLancamento}"
							styleClass="letra1">
							<f:convertDateTime pattern="dd/MM/yyyy"></f:convertDateTime>
						</h:outputText>
					</p:column>

					<p:column style="width:300px;text-align:left"
						filterBy="#{notaAgenda.descLancamento}" filterMatchMode="contains"
						footerText="#{msgs.contem}">
						<f:facet name="header">
							<h:outputText value="#{msgs.nota_de_agenda}" />
						</f:facet>
						<h:outputText value="#{notaAgenda.descLancamento}"
							styleClass="letra1" required="true">
						</h:outputText>
					</p:column>
				</p:dataTable>
			</p:panel>
			<h:panelGrid styleClass="painelBotoesLeft" columns="2">
				<p:commandButton value="#{msgs.botao_voltar}"
					action="dashboard_responsavel" ajax="false" process="@this" />
			</h:panelGrid>
			<h:panelGrid style="height:100px" columns="2">
			</h:panelGrid>

		</h:form>
	</ui:define>
</ui:composition>
